Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

281
Vistas
Is there a "limit" to Task.WhenAll?

If I need to perform IO-operations in a loop, I can create the Tasks and them await them all. Something like this:

var tasks = new List<Task>();
for (var dataToProcess in listOfData) {
    tasks.Add(DoSomeIOAsync(dataToProcess));
}

await Task.WhenAll(tasks);

How can I reason about what a reasonable number of dataToProcess in listOfData is?

If DoSomeIOAsync is async, then the thread used would be returned while waiting for the IO. So no risk for thread pool starvation I guess?

Is it the overhead of having a large amount of Task state machines in memory that might be a problem?

Are there some guidelines that I can use to reason about this?

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda